package Lesson2;

import java.util.Scanner;

public class Exercise5 {

	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);
			System.out.println("Add two numbers: ");
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if (a>b){
			System.out.println(" Please add the smaller number first");
		}else{
		
			for (int i = a; i<=b; i++){
				System.out.print(i + " ");
			}}
	}

}
